package com.ad.backstage.mapper;

import com.ad.backstage.model.PfAdvertisement;
import com.ad.payload.vo.PfAdvertisementVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  Mapper 接口  广告木块
 * </p>
 *
 * @author rclia
 * @since 2021-03-17
 */
@Service
public interface PfAdvertisementMapper extends BaseMapper<PfAdvertisement> {

    /**
     * 分页查询广告信息
     * @param page
     * @param o
     * @return
     */
    IPage<PfAdvertisement> selectPfAdvertisementPage(IPage<PfAdvertisement> page, Object o);

    /**
     * 小程序首页  查询广告 随机8条
     * @return
     */
    List<PfAdvertisement> randomSelectLimit8();
}
